<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ToDoList--最简单的待办事项列表</title>
    <link rel="stylesheet" href="css/index.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/index.js"></script>
</head>

<body>
    <header>
        <section>
            <label for="title">ToDoList</label>
            <input type="text" placeholder="添加ToDo" id="title">
        </section>
    </header>

    <section>
        <h2>
            正在进行<span id="todocount"></span>
        </h2>
        <ol id="todolist" class="demo-box"></ol>

        <h2>已经完成<span id="donecount"></span>
        </h2>
        <ul id="donelist"></ul>
    </section>

    <div id="times"></div>

    <script type="text/javascript">
        function getD1() {
            var date = new Date();
            var d1 = date.toLocaleString();
            var div1 = document.getElementById("times");
            div1.innerHTML = d1;
        }

        setInterval("getD1();", 1000);
    </script>
</body>

</html>